package com.qt.myio.ConvertStream;

import java.io.*;

/**
 * @Author zsf
 * @Date 2023/9/27 20:40
 * @Version 1.0
 */
public class ConverDemo02 {

    public static void main(String[] args) throws IOException, ClassNotFoundException {

        PrintStream printStream = new PrintStream(new FileOutputStream("src/main/java/com/qt/myio/file/print.txt"), true, "UTF-8");

        printStream.println("Hello World!");
        printStream.print("你好，世界！");
        printStream.printf("你好，%s 我是%s","二蛋","黄河");

        printStream.close();


    }


}
